import request from '@/utils/request'

/** @name 添加进出记录 **/
export function addRecordAPI (data) {
  return request({
    url: '/record/add',
    method: 'post',
    data
  })
}

/** @name 进出记录列表 **/
export function getRecordListAPI (params) {
  return request({
    url: '/record/list',
    method: 'get',
    params
  })
}

/** @name 编辑进出记录 **/
export function editRecordAPI (data) {
  return request({
    url: '/record/edit',
    method: 'post',
    data
  })
}

/** @name 导出进出记录 **/
export function importRecordAPI (data) {
  return request({
    url: '/record/import',
    method: 'post',
    data
  })
}
